<script setup>
import { userStore, setupStore } from './sotres/user'
const userState = userStore()
const setStore = setupStore()
const { increment } = userState


</script>

<template>
  <div>
    <span>{{ userState.count }}</span>| |
    <span>{{ userState.dobule }}</span>
    <button @click="increment">点我</button>

    __________________________setup_______________
    <span>{{ setStore.count }}</span>｜｜｜
    <span>{{ setStore.double }}</span>
    <button @click="setStore.increment">点我</button>
  </div>
</template>

<style scoped></style>
